﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserRegester.aspx.cs" Inherits="ORS.Web.UserRegester" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户注册</title>
    <style type="text/css">
        .textbox
        {}
        .style1
        {
            font-size: medium;
            font-weight: bold;
        }
        .style2
        {
            width: 589px;
        }
        .style3
        {
            font-size: x-small;
        }
        .style4
        {
            font-size: small;
        }
        .table
        {
            font-size: small;
            height: 78px;
        }
        .style5
        {
            color: #006699;
        }
        #form1
        {
            height: 769px;
            margin-right: 303px;
            width: 701px;
        }
        .style6
        {
            height: 823px;
        }
    </style>
</head>
<body >
    
    <form id="form1" runat="server" >

    <div>
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 
            style="font-size: small; height: 747px;" background="images/regbk.jpg">
  <TBODY>
  <tr>

    <TD width=10 class="style6"></TD>
    <TD class="style6"><FONT size=5 class="style1"><span class="style5">用户注册&gt;&gt;<br />
        </span>
        <p>
            <span class="title"><b>帐号基本信息（必填）</b></span><br />
            <table class="table" border="1">
                <tr>
                    <td class="style4">
                        用户名</td>
                    <td class="tdright">
                        <asp:TextBox ID="txtID" runat="server" CssClass="textbox" Width="161px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtID" Display="Dynamic" ErrorMessage="*" 
                            style="font-size: small"></asp:RequiredFieldValidator>
                        <span class="style3">用户名由2~16个字母、数字、汉字或者下划线组成&nbsp;&nbsp; </span>
                        <asp:LinkButton ID="LinkButton1" 
                            runat="server" CausesValidation="False" onclick="LinkButton1_Click" 
                            style="font-size: small; color: #006699">检测用户名</asp:LinkButton>
                    </td>
                </tr>
                <tr>
                <td class="style4">
                    角色</td>
                <td class="tdright">
                    <asp:DropDownList ID="ddlRole" runat="server" Width="150px" 
                        DataSourceID="roleSqlDataSource" DataTextField="name" DataValueField="roleid">
                        <asp:ListItem>------</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="roleSqlDataSource" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:DB_ConnectionString %>" 
                        SelectCommand="SELECT [roleid], [name] FROM [tb_role]"></asp:SqlDataSource>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                         ControlToValidate="ddlRole" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
                </tr>
                <tr>
                    <td class="style4">
                        密码</td>
                    <td class="tdright">
                        <asp:TextBox ID="txtPwd" runat="server" CssClass="textbox" Width="182px" 
                            TextMode="Password"></asp:TextBox>
                        <span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtPwd" Display="Dynamic" ErrorMessage="*" 
                            style="font-size: small"></asp:RequiredFieldValidator>
                        <span class="style4">密码至少6个字符，请不要和登录名相同。</span></span></td>
                </tr>
                <tr>
                    <td class="style4">
                        确认密码</td>
                    <td class="tdright">
                        <asp:TextBox ID="txtPwdconfirm" runat="server" CssClass="textbox" Width="182px" 
                            TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtPwdconfirm" Display="Dynamic" ErrorMessage="*" 
                            style="font-size: small"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="txtPwd" ControlToValidate="txtPwdconfirm" 
                            Display="Dynamic" ErrorMessage="两次密码不一致" style="font-size: small"></asp:CompareValidator>
                        </td>
                </tr>
                <tr>
                    <td class="style4">
                        电子邮件</td>
                    <td class="tdright">
                        <asp:TextBox ID="txtMail" runat="server" CssClass="textbox" Width="234px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="txtMail" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtMail" Display="Dynamic" ErrorMessage="请输入正确的电子邮件地址" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            style="font-size: small"></asp:RegularExpressionValidator>
                        <span class="style4">请输入您的常用电子邮件地址</span></td>
                </tr>
                </table>
        </p>

            <span class="title"><b>您的详细信息</b></span><br />
        <table class="table" border="1">
            <tr>
                <td class="tdleft">
                    真实姓名       <td class="style2">
                        <asp:TextBox ID="txtName" runat="server" CssClass="textbox" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="txtName" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                        请输入您的真实姓名（必填）</td>
            </tr>
            <tr>
                <td class="tdleft">
                    性别</td>
                <td class="style2">
                    <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True">男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="tdleft">
                    出生日期</td>
                <td class="style2">
                        <asp:TextBox ID="txtBirth" runat="server" CssClass="textbox" Width="300px"></asp:TextBox>
                        生日用于确认您的年龄，格式如:1990-01-01</td>
            </tr>
            <tr>
                <td class="tdleft">
                    部门</td>
                <td class="style2">
                        <asp:TextBox ID="txtDepartment" runat="server" CssClass="textbox" Width="300px"></asp:TextBox>
                        您所在的部门全称</td>
            </tr>
            <tr>
                <td class="tdleft">
                    固定电话</td>
                <td class="style2">
                        <asp:TextBox ID="txtPhone" runat="server" CssClass="textbox" Width="300px"></asp:TextBox>
            </tr>
            <tr>
                <td class="tdleft">
                    手机号码</td>
                <td class="style2">
                        <asp:TextBox ID="TxtMobile" runat="server" CssClass="textbox" Width="300px"></asp:TextBox>
            </tr>
            <tr>
                <td class="tdleft">
                    身份证号</td>
                <td class="style2">
                        <asp:TextBox ID="txtIcard" runat="server" CssClass="textbox" Width="300px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdleft">
                    兴趣领域</td>
                <td class="style2">
                    <asp:DropDownList ID="ddlinterest" runat="server" Width="150px" 
                        DataSourceID="interestSqlDataSource" DataTextField="name" 
                        DataValueField="interestid">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="interestSqlDataSource" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:DB_ConnectionString %>" 
                        SelectCommand="SELECT [interestid], [name] FROM [tb_interest]">
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="tdleft">
                    &nbsp;</td>
                <td class="style2">
                        &nbsp;</td>
            </tr>
            <tr>
                <td class="tdleft">
                    &nbsp;</td>
                <td class="style2">
                        <asp:Button ID="Bt_register" runat="server" CssClass="button" Text="注 册" 
                            onclick="Bt_register_Click" />
&nbsp;
                        <asp:Button ID="Bt_reset" runat="server" CausesValidation="False" 
                            CssClass="button" Text="返 回" onclick="Bt_reset_Click" />
                </td>
            </tr>
        </table>

        </FONT></TD>
    <TD width=10 class="style6"></TD></TR>
  </TBODY>
     </TABLE>
    </div>


    <div class="register">
        </div>
    </form>
</body>
</html>
